package com.clqteam.serviceimpl;

import com.clqteam.dao.SelectDailyReportDao;
import com.clqteam.daoimpl.SelectDailyReportDaoImpl;
import com.clqteam.daoimpl.SelectEmployeeDaoImpl;
import com.clqteam.service.SelectDailyReportService;

import net.sf.json.JSONObject;

public class SelectDailyReportServiceImpl implements SelectDailyReportService{
   SelectDailyReportDao seDaService =new SelectDailyReportDaoImpl();
	@Override
	public JSONObject findDailyReportInfo(int page, int rows, String time1, String time2,String emName) {
		 JSONObject js=new JSONObject();
		 js.put("total", seDaService.getDailyReportCount(time1, time2, emName));
		 js.put("rows", seDaService.getDailyReportInfo(page, rows, time1, time2, emName));
		 
		return js;
	}

}
